package com.by.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.by.entity.Category;
import com.by.service.CategoryService;
import com.by.mapper.CategoryMapper;
import com.by.vo.CategoryTreeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 16564
* @description 针对表【pms_category(商品分类)】的数据库操作Service实现
* @createDate 2025-10-10 21:52:49
*/
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category>
    implements CategoryService{

    @Autowired
    private CategoryMapper categoryMapper;
    @Override
    public List<CategoryTreeVo> selectCategoryTree(Long parentCid) {
        return categoryMapper.selectCategoryTree(parentCid);
    }
}




